package com.topnav.mc.admin.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.topnav.mc.admin.entity.FencePolygon;
import com.topnav.mc.admin.entity.bean.FencePolygonBean;
import com.topnav.mc.admin.entity.param.FencePolygonParam;
import com.topnav.mc.base.mc.McMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: kenny
 * @Date: 2023/11/13 10:42
 */
@Mapper
public interface FencePolygonMapper extends McMapper<FencePolygon, FencePolygonBean, FencePolygonParam> {

    String commSql = " SELECT fp.* " +
            " FROM mc_fence_polygon fp " +
            " ${ew.customSqlSegment}";

    @Select(commSql)
    FencePolygonBean selectInfoOne(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    List<FencePolygonBean> selectInfoList(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    Page<FencePolygonBean> selectInfoPage(Page<FencePolygonParam> page, @Param(Constants.WRAPPER) Wrapper queryWrapper);
}
